package com.ricohgag.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ricohgag.entity.News;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 肖晖
 * @since 2018-08-25
 */
public interface NewsService extends IService<News> {
    public IPage<News> selectNewsPage(String name, Integer cId, Page<News> page) throws Exception;

    public News seleNewsOne(Integer id) throws Exception;

    public int updateNews(News shopAd) throws Exception;

    public int insertNews(News shopAd) throws Exception;

    public int deleteNews(int id) throws Exception;
}
